home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / epulsar.gsh < prev    next >
Text File  |  2000-09-09  |  3KB  |  112 lines

  1. // defines the epulsar (lightning gun) weapon
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_EPULSAR_GSH
  8. #define INCLUDED_EPULSAR_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. projectile Prj_Epulsar_Beam
  13. {
  14.     gravity        no // is this missile affected by gravity
  15.     damage        12 // in strength points
  16.     blast        2 // proximity damage (not yet supported)
  17.     max range    784
  18.     sound        epulsar sound
  19. }
  20.  
  21. pgenerator Pgn_Epulsar_Beam
  22. {
  23.     type shot
  24.     life infinite // well actually until the shot no longer exists
  25.     generategenerators     yes
  26.     rate 60
  27.     // stream direction
  28.     x 0 y 0 z 0
  29.     // particle colour
  30.     red 1 green 1 blue 1 alpha 0.5
  31.     // scale
  32.     start scale 0.15 end scale 0.0
  33. }
  34.  
  35. role Rol_Epulsar_Beam : Rol_DefaultProjectile
  36. {
  37.     projectile    Prj_Epulsar_Beam
  38.  
  39.     //pgen        Pgn_Epulsar_Beam
  40.  
  41.     limit        2                // lightning beam
  42. }
  43.  
  44. // EPULSAR
  45. ammo
  46. {
  47.     weapon type        epulsar
  48.     ammo type        energy cells
  49.  
  50.     round time        0.1
  51.     reload time        1
  52.     life timer        0
  53.     magazine size    20
  54.     sound            epulsar sound
  55.  
  56.     file            "User Interface/CommWheel01.RIF"    // command wheel icon
  57.     name            "sub ammo grenade ra"
  58.  
  59.     projectile        Rol_Epulsar_Beam // what it fires
  60.     firing speed    50 // m/s
  61. }
  62.  
  63. ////////////////////////////////////////////////////////////////////////////////////
  64.  
  65. shape Shp_Epulsar_Pickup
  66. {
  67.     file "objects\EPULSAR DISC PICKUP A.rif"
  68.     name "EPULSAR DISC PICKUP A"
  69. }
  70.  
  71. hierarchy Hcy_Epulsar_Inventory_Pickup
  72. {
  73.     file "objects\EPULSAR DISC.rif"                // TBD
  74.     name "EPULSAR DISC"                            // TBD
  75.     hotspot none
  76. }
  77.  
  78. character Chr_Epulsar_Pickup : Chr_Default
  79. {
  80.     turning speed   0    // this is in revolutions per second
  81.     walking speed   0    // this is in animation cycles per second
  82.     weapon            epulsar
  83.     strength        10    // initial strength points
  84.     aim                0
  85.     aggression        0.41    // 4 = weapon pickup
  86. }
  87.  
  88. role Rol_Epulsar_Pickup : Rol_DefaultPickup
  89. {
  90.     shape            Shp_Epulsar_Pickup
  91.  
  92.     inventory shape    Hcy_Epulsar_Inventory_Pickup
  93.  
  94.     character        Chr_Epulsar_Pickup
  95.  
  96.     identifier        "epulsar"
  97.  
  98.     destructibility    Des_Explode
  99.  
  100.     armour            25
  101.  
  102.     description        epulsar description
  103.  
  104.     pickup name        epulsar pickup
  105.  
  106.     limit            10
  107. }
  108.  
  109. ////////////////////////////////////////////////////////////////////////////////////
  110.  
  111. // end wrapper - for preventing multiple or recursive inclusions
  112. #endif // !INCLUDED_EPULSAR_GSH